import request from '@/utils/request'

// 查询活动自定义字段列表
export function listActivityCustom(query) {
  return request({
    url: '/activity/activityCustom/list',
    method: 'get',
    params: query
  })
}

// 查询活动自定义字段详细
export function getActivityCustom(id) {
  return request({
    url: '/activity/activityCustom/' + id,
    method: 'get'
  })
}

// 新增活动自定义字段
export function addActivityCustom(data) {
  return request({
    url: '/activity/activityCustom',
    method: 'post',
    data: data
  })
}

// 修改活动自定义字段
export function updateActivityCustom(data) {
  return request({
    url: '/activity/activityCustom',
    method: 'put',
    data: data
  })
}

// 删除活动自定义字段
export function delActivityCustom(id) {
  return request({
    url: '/activity/activityCustom/' + id,
    method: 'delete'
  })
}
